package cn.edu.bupt.freewings.forum.desktop.utility;

import cn.edu.bupt.freewings.forum.common.PostType;

/**
 * @author hubaiyu (hubaiyu@gmail.com)
 *
 */
public class CommonUtility {
	public static PostType.Post makePost(String text, Integer topicId, Integer userId){
		PostType.Post.Builder builder = PostType.Post.newBuilder();
		builder.setText(text).setTopicId(topicId).setUserId(userId).setPostTime(System.currentTimeMillis());
		return builder.build();
	}
}
